package com.sydsen.imager.elements;

import java.awt.*;

/**
 * @Auther: syh
 * @Date: 2021/11/5
 * @Description:
 */
public class Shape extends Element<Shape> {

    /**
     * 图形圆角
     */
    private int radius;

    /**
     * 图形颜色，默认白色
     */
    private Color color;

    public Shape(int height, int width, Color color) {
        super.width(width);
        super.height(height);
        this.color = color;
    }

    public int radius() {
        return radius;
    }

    public Shape radius(int radius) {
        this.radius = radius;
        return this;
    }

    public Color color() {
        return color;
    }

    public Shape color(Color color) {
        this.color = color;
        return this;
    }
}
